import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/api/v1/sale/findSmsHomeNewProduct',
    method:'post',
    params:params
  })
}

export function updateRecommendStatus(data) {
  return request({
    url:'/api/v1/sale/updateSmsHomeNewProduct',
    method:'post',
    data:data
  })
}

export function deleteNewProduct(data) {
  return request({
    url:'/api/v1/sale/delSmsHomeNewProduct',
    method:'post',
    data:data
  })
}

export function createNewProduct(data) {
  return request({
    url:'/api/v1/sale/addSmsHomeNewProduct',
    method:'post',
    data:data
  })
}

export function updateNewProductSort(params) {
  return request({
    url:'/api/v1/sale/updateSmsHomeNewProduct',
    method:'post',
    params:params
  })
}
